package cn.ac.cintcm.prespring.statistics;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.solr.core.Config;
/**
 * for gongxiao statistics
 * @author CaoMudan
 * @date 2008-9-13
 */
public class GXstatistics extends BaseStatistics{
//	
//	static String dir="F:\\renshui\\workspace1\\mySolr\\example\\solr\\";
//	static String textUrl_FJGXS = dir+ "data/originalData/PRES_FJ_GXS.txt";
//	static String textUrl_GX = dir+ "data/originalData/PRES_GX.txt";
	
	static String textUrl_FJGXS = Config.getInstanceDir()+ "data/originalData/PRES_FJ_GXS.txt";
	static String textUrl_GX = Config.getInstanceDir()+ "data/originalData/PRES_GX.txt";
	
	public GXstatistics() {
		super(textUrl_FJGXS, textUrl_GX);
	}
	
	public static void main(String[] args){
		GXstatistics sta=new GXstatistics();
		List<String> fjids= new ArrayList<String>();
		fjids.add("084476");
		fjids.add("084477");
		fjids.add("084478");
		fjids.add("084479");
		fjids.add("084480");
		Map<String,Integer> map=sta.getStatisticalData(fjids);
		Set<String> keys=map.keySet();
		Iterator iter=keys.iterator();
		while(iter.hasNext()){
			String en=(String)iter.next();
			System.out.println(en+" "+map.get(en));
		}
		
	}
}
